<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../../print.css" type="text/css" media="print">
<meta content="Triangle3D,com.derschmale.wick3d.core.geometry.Triangle3D,isCulled,material,uv1,uv2,uv3,v1,v2,v3,zIndex,normal,parent,plane,calculateZIndex,containsPoint2D,getUVCoords,invalidateNormal,setParent,splitInViewCoords" name="keywords">
<title>com.derschmale.wick3d.core.geometry.Triangle3D</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'Triangle3D - Wick3d Documentation';
				var baseRef = '../../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Wick3d Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../../index-list.html')" href="../../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../../index.html?com/derschmale/wick3d/core/geometry/Triangle3D.html&amp;com/derschmale/wick3d/core/geometry/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;Triangle3D</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class Triangle3D"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.derschmale.wick3d.core.geometry</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class Triangle3D</td>
</tr>
</table>
<p></p>
  The Triangle3D class represents a 3D polygon with 3 vertices. When facing the camera, the vertices should be determined in counterclockwise order.
  
  <p></p>
<p>
<span class="classHeaderTableLabel">See also</span>
</p>
<div class="seeAlso">
<a href="../geometry/Vertex3D.html" target="">com.derschmale.wick3d.core.geometry.Vertex3D</a>
<br>
<a href="../objects/Model3D.html" target="">com.derschmale.wick3d.core.objects.Model3D</a>
</div>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#isCulled">isCulled</a> : Boolean = false<div class="summaryTableDescription">
   Determines whether a triangle has been culled or not.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#material">material</a> : <a href="../../materials/AbstractMaterial.html">AbstractMaterial</a>
<div class="summaryTableDescription">
   A reference to the material used to render the triangle
   
   </div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#normal">normal</a> : <a href="../math/Vector3D.html">Vector3D</a>
<div class="summaryTableDescription">[read-only]
   The normal vector of the Triangle.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#parent">parent</a> : <a href="../objects/Model3D.html">Model3D</a>
<div class="summaryTableDescription">[read-only]
   The Model3D object that contains this triangle.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#plane">plane</a> : <a href="../geometry/Plane.html">Plane</a>
<div class="summaryTableDescription">[read-only]
   The plane in which the triangle lies.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#uv1">uv1</a> : <a href="../imagemaps/UVCoords.html">UVCoords</a>
<div class="summaryTableDescription">
   The first vertex' texture UV Coordinates
   
   </div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#uv2">uv2</a> : <a href="../imagemaps/UVCoords.html">UVCoords</a>
<div class="summaryTableDescription">
   The second vertex' texture UV Coordinates
   
   </div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#uv3">uv3</a> : <a href="../imagemaps/UVCoords.html">UVCoords</a>
<div class="summaryTableDescription">
   The third vertex' texture UV Coordinates
   
   </div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#v1">v1</a> : <a href="../geometry/Vertex3D.html">Vertex3D</a>
<div class="summaryTableDescription">
   A reference to the Triangle's first vertex in view coordinates.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#v2">v2</a> : <a href="../geometry/Vertex3D.html">Vertex3D</a>
<div class="summaryTableDescription">
   A reference to the Triangle's second vertex in view coordinates.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#v3">v3</a> : <a href="../geometry/Vertex3D.html">Vertex3D</a>
<div class="summaryTableDescription">
   A reference to the Triangle's third vertex in view coordinates.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#zIndex">zIndex</a> : Number<div class="summaryTableDescription">
   The zIndex of the Triangle, used for sorting.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#Triangle3D()">Triangle3D</a>(v1:<a href="Vertex3D.html">Vertex3D</a>, v2:<a href="Vertex3D.html">Vertex3D</a>, v3:<a href="Vertex3D.html">Vertex3D</a>)</div>
<div class="summaryTableDescription">
   Creates a Triangle3D object.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#calculateZIndex()">calculateZIndex</a>():void</div>
<div class="summaryTableDescription">
   Recalculates the z-index of the triangle, which is a sum of all vertices' z coordinate, used in depth sorting.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#containsPoint2D()">containsPoint2D</a>(x:Number, y:Number):Boolean</div>
<div class="summaryTableDescription">
   Checks if the 2D projection of the triangle contains a point
   
   </div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getUVCoords()">getUVCoords</a>(x:Number, y:Number):Point</div>
<div class="summaryTableDescription">
   Retrieves the material's coordinates for the 2D viewport coordinates.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#invalidateNormal()">invalidateNormal</a>():void</div>
<div class="summaryTableDescription">
   Is called to indicate that the normal will need to be recalculated.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#setParent()">setParent</a>(parent:<a href="../objects/Model3D.html">Model3D</a>, localV1:<a href="Vertex3D.html">Vertex3D</a>, localV2:<a href="Vertex3D.html">Vertex3D</a>, localV3:<a href="Vertex3D.html">Vertex3D</a>):void</div>
<div class="summaryTableDescription">
   Define the triangle as part of a Model3D triangle mesh.</div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#splitInViewCoords()">splitInViewCoords</a>(partitionPlane:<a href="Plane.html">Plane</a>):Array</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">Triangle3D</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="isCulled"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isCulled</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>public var isCulled:Boolean = false</code><p>
   Determines whether a triangle has been culled or not.
   </p></div>
<a name="material"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">material</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var material:<a href="../../materials/AbstractMaterial.html">AbstractMaterial</a></code><p>
   A reference to the material used to render the triangle
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../../materials/AbstractMaterial.html" target="">com.derschmale.wick3d.materials.AbstractMaterial</a>
</div>
</div>
<a name="normal"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">normal</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>normal:<a href="../math/Vector3D.html">Vector3D</a></code>&nbsp;&nbsp;[read-only]<p>
   The normal vector of the Triangle.
   
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get normal():<a href="../math/Vector3D.html">Vector3D</a></code>
<br>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../math/Vector3D.html" target="">com.derschmale.wick3d.core.math.Vector3D</a>
</div>
</div>
<a name="parent"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">parent</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>parent:<a href="../objects/Model3D.html">Model3D</a></code>&nbsp;&nbsp;[read-only]<p>
   The Model3D object that contains this triangle.
   
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get parent():<a href="../objects/Model3D.html">Model3D</a></code>
<br>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../objects/Model3D.html" target="">com.derschmale.wick3d.core.objects.Model3D</a>
</div>
</div>
<a name="plane"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">plane</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>plane:<a href="../geometry/Plane.html">Plane</a></code>&nbsp;&nbsp;[read-only]<p>
   The plane in which the triangle lies.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get plane():<a href="../geometry/Plane.html">Plane</a></code>
<br>
</div>
<a name="uv1"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">uv1</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var uv1:<a href="../imagemaps/UVCoords.html">UVCoords</a></code><p>
   The first vertex' texture UV Coordinates
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../../materials/TextureMaterial.html" target="">com.derschmale.wick3d.materials.TextureMaterial</a>
<br>
<a href="../imagemaps/UVCoords.html" target="">com.derschmale.wick3d.core.imagemaps.UVCoords</a>
</div>
</div>
<a name="uv2"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">uv2</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var uv2:<a href="../imagemaps/UVCoords.html">UVCoords</a></code><p>
   The second vertex' texture UV Coordinates
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../../materials/TextureMaterial.html" target="">com.derschmale.wick3d.materials.TextureMaterial</a>
<br>
<a href="../imagemaps/UVCoords.html" target="">com.derschmale.wick3d.core.imagemaps.UVCoords</a>
</div>
</div>
<a name="uv3"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">uv3</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var uv3:<a href="../imagemaps/UVCoords.html">UVCoords</a></code><p>
   The third vertex' texture UV Coordinates
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../../materials/TextureMaterial.html" target="">com.derschmale.wick3d.materials.TextureMaterial</a>
<br>
<a href="../imagemaps/UVCoords.html" target="">com.derschmale.wick3d.core.imagemaps.UVCoords</a>
</div>
</div>
<a name="v1"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">v1</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var v1:<a href="../geometry/Vertex3D.html">Vertex3D</a></code><p>
   A reference to the Triangle's first vertex in view coordinates.
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../geometry/Vertex3D.html" target="">com.derschmale.wick3d.core.geometry.Vertex3D</a>
</div>
</div>
<a name="v2"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">v2</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var v2:<a href="../geometry/Vertex3D.html">Vertex3D</a></code><p>
   A reference to the Triangle's second vertex in view coordinates.
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../geometry/Vertex3D.html" target="">com.derschmale.wick3d.core.geometry.Vertex3D</a>
</div>
</div>
<a name="v3"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">v3</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var v3:<a href="../geometry/Vertex3D.html">Vertex3D</a></code><p>
   A reference to the Triangle's third vertex in view coordinates.
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../geometry/Vertex3D.html" target="">com.derschmale.wick3d.core.geometry.Vertex3D</a>
</div>
</div>
<a name="zIndex"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">zIndex</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var zIndex:Number</code><p>
   The zIndex of the Triangle, used for sorting. This value should only be read and is made public for performance. The zIndex should be set by calling calculateZIndex().
   </p></div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="Triangle3D()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">Triangle3D</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function Triangle3D(v1:<a href="Vertex3D.html">Vertex3D</a>, v2:<a href="Vertex3D.html">Vertex3D</a>, v3:<a href="Vertex3D.html">Vertex3D</a>)</code><p>
   Creates a Triangle3D object. The vertices are the transformed view coordinates and are stored in the parent Model3D object so one vertex can be shared throughout several triangles.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">v1</span>:<a href="Vertex3D.html">Vertex3D</a></code> &mdash; A reference to the Triangle's first vertex in view coordinates.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">v2</span>:<a href="Vertex3D.html">Vertex3D</a></code> &mdash; A reference to the Triangle's second vertex in view coordinates.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">v3</span>:<a href="Vertex3D.html">Vertex3D</a></code> &mdash; A reference to the Triangle's third vertex in view coordinates.
   
   </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../geometry/Vertex3D.html" target="">com.derschmale.wick3d.core.geometry.Vertex3D</a>
</div>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="calculateZIndex()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">calculateZIndex</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function calculateZIndex():void</code><p>
   Recalculates the z-index of the triangle, which is a sum of all vertices' z coordinate, used in depth sorting.
   </p></div>
<a name="containsPoint2D()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">containsPoint2D</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function containsPoint2D(x:Number, y:Number):Boolean</code><p>
   Checks if the 2D projection of the triangle contains a point
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">x</span>:Number</code> &mdash; The x-coordinate of the point to check
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">y</span>:Number</code> &mdash; The y-coordinate of the point to check
   
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; A Boolean value which specifies whether the triangle contains the point or not.
   </td>
</tr>
</table>
</div>
<a name="getUVCoords()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getUVCoords</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getUVCoords(x:Number, y:Number):Point</code><p>
   Retrieves the material's coordinates for the 2D viewport coordinates.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">x</span>:Number</code> &mdash; The x-coordinate in Viewport coordinates.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">y</span>:Number</code> &mdash; The y-coordinate in Viewport coordinates.
   
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Point</code> &mdash; A Point representing the material's coordinates for the 2D viewport coordinates.
   </td>
</tr>
</table>
</div>
<a name="invalidateNormal()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">invalidateNormal</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function invalidateNormal():void</code><p>
   Is called to indicate that the normal will need to be recalculated. It is typically called from the RenderPipeline after view transformation and before any culling or clipping is done.
   </p></div>
<a name="setParent()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">setParent</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function setParent(parent:<a href="../objects/Model3D.html">Model3D</a>, localV1:<a href="Vertex3D.html">Vertex3D</a>, localV2:<a href="Vertex3D.html">Vertex3D</a>, localV3:<a href="Vertex3D.html">Vertex3D</a>):void</code><p>
   Define the triangle as part of a Model3D triangle mesh.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">parent</span>:<a href="../objects/Model3D.html">Model3D</a></code> &mdash; The parent triangle mesh of which this triangle is a part.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">localV1</span>:<a href="Vertex3D.html">Vertex3D</a></code> &mdash; A reference to the first vertex in the parent's local coordinates.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">localV2</span>:<a href="Vertex3D.html">Vertex3D</a></code> &mdash; A reference to the first vertex in the parent's local coordinates.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">localV3</span>:<a href="Vertex3D.html">Vertex3D</a></code> &mdash; A reference to the first vertex in the parent's local coordinates.
   
   </td>
</tr>
</table>
</div>
<a name="splitInViewCoords()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">splitInViewCoords</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function splitInViewCoords(partitionPlane:<a href="Plane.html">Plane</a>):Array</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">partitionPlane</span>:<a href="Plane.html">Plane</a></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Array</code></td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
